package com.mng.annoTest;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class UserDao {
  @Value("yuanno")
  public String name;

  public void outName(){
    System.out.println(this.name);
  }

  @Override
  public String toString() {
    return "UserDao{" +
        "name='" + name + '\'' +
        '}';
  }
}
